<!doctype html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<div id="test1">hello<table style="display:inline-table"><tr><td>1</td></tr></table>world</div>
<div id="test2">foo <table style="display:inline-table"><tr><td>2</td></tr></table> bar</div>
<script>
test(() => {
  assert_equals(document.getElementById('test1').innerText, 'hello1world',
    'test1.innerText');
  assert_equals(document.getElementById('test2').innerText, 'foo 2 bar',
    'test2.innerText');
}, 'Checks that the text iterator is emitting a space before and after an inline table');
</script>
